//
//  AboutController.m
//  DYLYJ
//
//  Created by JM on 15/11/13.
//  Copyright © 2015年 JM. All rights reserved.
//

#import "AboutController.h"

@interface AboutController ()
@property(strong, nonatomic)IBOutlet UILabel *versionLabel;
@end

@implementation AboutController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    NSString *version = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"];
    
    //    获得build号 每build一次 ＋1
    NSString *bulidID = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"];
    
    self.versionLabel.text = [[self.versionLabel.text stringByAppendingString:[NSString stringWithFormat:@"%@.%@",version,bulidID]] stringByAppendingString:@"日期1211"];
}

- (IBAction)touchUpInside:(id)sender {
    [self dismissViewControllerAnimated:YES completion:^{
        
    }];
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
